package com.lzj.server.entity.video;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lzj.server.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_message_status")
@Schema(name = "SysMessageStatus", description = "用户消息状态表，管理消息的已读、删除状态")
public class MessageStatus extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键，自增ID")
    private Long id;

    @TableField("user_id")
    @Schema(description = "接收用户ID")
    private Long userId;

    @TableField("message_id")
    @Schema(description = "关联消息ID")
    private Long messageId;

    @TableField("is_read")
    @Schema(description = "是否已读，0-未读，1-已读")
    private Integer isRead;

}
